﻿using System.ComponentModel.DataAnnotations;
using MaxStoreErp.Core.BaseClasses;

namespace MaxStoreShop.Domain.Directories
{
    /// <summary>
    /// Место хранения
    /// </summary>
    public class StorageLocation : EntityBase
    {
        [Required]
        [StringLength(150)]
        public string Name { get; set; }

        [Required]
        [StringLength(30)]
        public string Barcode { get; set; }

        public override string ToString()
        {
            return string.Format("{0} (Баркод: {1})", Name, Barcode);
        }
    }
}
